package poker;

import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;

public class cardTest {
	card test;

	@Before
	public final void setUp() {
		try {
			test = new card("2", 'H');
		} catch (cardException e) {

			e.printStackTrace();
		}
	}

	@Test
	public final void test() {
		assertEquals("2H", test.jakaKarta());
	}

	@Test(expected = cardException.class)
	public final void test1() throws cardException {
		card test2 = new card("1", 'A');
		card test3 = new card("2", 'A');
	}

}
